import React, {Component} from 'react'
import {View} from '@tarojs/components'
import {observer} from 'mobx-react'
import model from "./model";
import './index.scss'
import CHeader from '../../component/CHeader'

@observer
class Index extends Component<any, {}> {
  componentWillMount() {
  }

  componentDidMount() {
  }

  componentWillUnmount() {
  }

  componentDidShow() {
  }

  componentDidHide() {
  }

  increment = () => {
    model.increment()
  }

  decrement = () => {
    model.decrement()
  }

  incrementAsync = () => {
    model.incrementAsync()
  }

  render() {
    return (
      <View className='index'>
        <CHeader {...this.props} title='首页' showBack>
          哈哈哈
        </CHeader>
      </View>
    )
  }
}

export default Index
